package com.tsing.wms.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tsing.wms.entity.SupplierEntity;
import com.tsing.wms.vo.PageResultVO;
import com.tsing.wms.vo.req.IdReqVO;
import com.tsing.wms.vo.req.IdsReqVO;
import com.tsing.wms.vo.req.SupplierPageReqVO;
import com.tsing.wms.vo.req.SupplierReqVO;
import com.tsing.wms.vo.resp.IdAndNameRespVO;
import com.tsing.wms.vo.resp.SupplierRespVO;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * <p>
 * 供应商表 服务类
 * </p>
 *
 * @author TheTsing
 * @since 2022-04-13
 */
public interface ISupplierService extends IService<SupplierEntity> {

    List<IdAndNameRespVO> userList();

    List<IdAndNameRespVO> regionList();

    void addSupplier(SupplierReqVO reqVO, HttpServletRequest request);

    void deleteSupplier(IdsReqVO reqVO, HttpServletRequest request);

    SupplierRespVO getSupplier(IdReqVO reqVO);

    void updateSupplier(SupplierReqVO reqVO, HttpServletRequest request);

    PageResultVO<SupplierRespVO> supplierPage(SupplierPageReqVO reqVO);
}
